#! /bin/sh

name=libxml
repology_id=libxml2
version=2.14.2
revision=1
tarball_url="https://download.gnome.org/sources/libxml2/2.14/libxml2-${version}.tar.xz"
tarball_blake2b="2331234ed60358168298d04c83162bfe7d08e6fc77091fe1ecf8384e68902ab745f039dc807d12dda3124313724806bd7fb651de975dbc60fdaf963bac043ff8"
hostdeps="gcc pkg-config"
deps="core-libs zlib icu readline"

prepare() {
    autotools_recursive_regen
}

configure() {
    autotools_configure \
        --with-threads \
        --disable-ipv6 \
        --without-python \
        --with-history \
        --with-icu
}

build() {
    make -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" make install

    post_package_strip
}
